package com.yyp.car.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hdw.basic.dao.BaseDao;
import com.yyp.car.Idao.ITestTypeDao;
import com.yyp.car.model.TestType;
@Repository("testTypeDao")
public class TestTypeDao extends BaseDao<TestType> implements ITestTypeDao{

	@Override
	public List<TestType> listTestType() {
		String hql="from TestType order by id asc";
		return this.list(hql);
	}

	@Override
	public String findTestType(int id) {
		String hql="select tt.name from TestType tt where tt.id ='"+id+"'";
		return (String)this.queryObject(hql);
	}
	
}
